package cn.wolfcode.crm.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
* Created by Mybatis Generator on 2020/03/11
*/
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Employee extends BaseDomain{
    private String name;

    private String password;

    private String email;

    private Integer age;

    private Long dept_id;

    private boolean admin;
    //关联部门对象 one方对象
    private Department dept;
    //关联角色对象 many方对象
    private List<Role> roles = new ArrayList<>();
}